//
//  WCDefaultManager.h
//  WC
//
//  Created by 杨鑫 on 15/5/8.
//  Copyright (c) 2015年 智康. All rights reserved.
//

#import <Foundation/Foundation.h>
//
#import "Account.h"
#import "AccountEntity.h"

#define k_Account @"account"
#define k_Password @"password"


@interface WCDefaultManager : NSObject

+ (instancetype)shareMg;

/**
 *  判断程序是否第一次启动,在当前版本
 *
 *  @return BOOL
 */
- (BOOL)isFirstStart;

/**
 *  启动后或一些初始化工作
 */
- (void)startApp;

/**
 *  上次登陆的账号
 *
 *  @return NSString
 */
- (NSString *)lastAccount;
/**
 *  <#Description#>
 *
 *  @param Account <#Account description#>
 *
 *  @return <#return value description#>
 */

- (NSInteger )nurseId;

/**
 *  获得账户信息
 *
 *  @return Account
 */
- (Account *)account;

- (AccountEntity *)accountEntity;
- (void)updateAccount:(AccountEntity *)accountEntity;
- (void)updateAccountWithDic:(NSDictionary *)data;

- (void)updatePwdWithPwd:(NSString *)pwd;


/**
 *  获取账户名和密码来重新登陆
 *
 *  @return NSDictionary
 */
- (NSDictionary *)loginNameAndMd5Pwd;
/**
 *  设置登录的账户名
 *
 *  @param accout NSDictionary
 */
- (void)login:(NSDictionary *)accout;

/**
 *  退出
 */
- (void)logout;

/**
 *  保存页面的某些属性
 *
 *  @param settings NSDictionary
 *  @param name     NSString
 */
- (void)saveSettings:(NSDictionary *)settings forPage:(NSString *)name;

/**
 *  读区页面保存的属性
 *
 *  @param name NSString
 *
 *  @return NSDictionary
 */
- (NSDictionary *)pageSettings:(NSString *)name;
- (void)updatSearchStatus:(NSInteger)searchStatus;

- (void)saveLastAccouts:(NSString *)phone name:(NSString *)name;
- (NSArray *)getPhoneAccouts;

- (void)saveLastMeetingAccouts:(NSString *)meetingAccount;
- (NSArray *)getMeetingAccounts;


@end
